<?php
	$id= mysql_escape_string($_GET["id"]);
	
	require_once ("../../config.inc.php");
	require_once ("../../include/mysql.inc.php");
	require_once ("../../include/article.inc.php");
	$articleDao = new Article();
	
	$flag = $articleDao->delete($id);
	
	if ($flag) {
		echo "删除文章成功！<br/><a href='../../admin/articleList.php'>跳转到文章列表</a>";
	}
	else {
		echo "删除文章失败！<br/><a href='../../admin/articleList.php'>跳转到文章列表</a>";
	}
	
?>